From e20503836c3d91d52eb0448ebb34f599d7b87300 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Wed, 22 Dec 2010 21:21:44 +0900 Subject: [PATCH] Fixed GtkGrid GtkContainerClass->forall() to not use a for loop. This loop needs to be safe for removing children in a forall loop. --- gtk/gtkgrid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c index 7aaf8ef818..3557c16949 100644 --- a/gtk/gtkgrid.c +++ b/gtk/gtkgrid.c @@ -439,9 +439,11 @@ gtk_grid_forall (GtkContainer *container, GtkGridChild *child; GList *list; - for (list = priv->children; list; list = list->next) + list = priv->children; + while (list) { child = list->data; + list = list->next; (* callback) (child->widget, callback_data); } -- 2.30.2